package cmsparse.bean;

/**
 * Created by XiaoJianjun on 2017/5/21.
 * 视频
 */
public class VideoParam {
    private String title;
    private String biaozhunUrl;
    private String gaoqingUrl;
    private String shengliuUrl;

    public VideoParam(String title, String biaozhunUrl, String gaoqingUrl, String shengliuUrl) {
        this.title = title;
        this.biaozhunUrl = biaozhunUrl;
        this.gaoqingUrl = gaoqingUrl;
        this.shengliuUrl = shengliuUrl;
    }

    public String getBiaozhunUrl() {
        return biaozhunUrl;
    }

    public void setBiaozhunUrl(String biaozhunUrl) {
        this.biaozhunUrl = biaozhunUrl;
    }

    public String getGaoqingUrl() {
        return gaoqingUrl;
    }

    public void setGaoqingUrl(String gaoqingUrl) {
        this.gaoqingUrl = gaoqingUrl;
    }

    public String getShengliuUrl() {
        return shengliuUrl;
    }

    public void setShengliuUrl(String shengliuUrl) {
        this.shengliuUrl = shengliuUrl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof VideoParam)) {
            return false;
        }
        VideoParam target = (VideoParam) obj;
        return equalsString(target.biaozhunUrl, this.biaozhunUrl)
                && equalsString(target.title, this.title);
    }

    private boolean equalsString(String src, String target) {
        return (src == null && target == null) || (src != null && target != null && src.equals(target));
    }
}
